package com.stepshop.wechat.utils;

import java.awt.image.BufferedImage;

import jp.sourceforge.qrcode.data.QRCodeImage;

/***
 * 二维码图片对象
 * @author TH
 *
 */
public class TwoDimensionCodeImage implements QRCodeImage {
	
	BufferedImage bufImg; 
	
	public TwoDimensionCodeImage(BufferedImage bufImg) {  
	     this.bufImg = bufImg;  
    }  

	@Override
	public int getHeight() {
		return bufImg.getHeight();
	}

	@Override
	public int getPixel(int X, int Y) {
		return bufImg.getRGB(X,Y);
	}

	@Override
	public int getWidth() {
		return bufImg.getWidth();
	}

}
